#ifndef __LOGO_SCAN_H__
#define __LOGO_SCAN_H__

#include "logo_lib.h"
#include "token.h"
#include "iexec.h"

#define STR_BUF_SIZE 1024
#define DEBUG_INFO 1
#define ERROR_INFO 0

#ifdef __cplusplus
extern "C" 
{
#endif /*  __cplusplus */
extern i_exec_t* g_exec;
extern char g_debug_info[];
extern char g_error_info[];
int get_line_no ();
const char* get_token_string ();
token_t  get_token();
void print_info(int is_debug, char* fmt, ...);
void print_token (char* buf, int len, token_t token, const char* str);

#ifdef __cplusplus
}
#endif /*  __cplusplus */
#endif /* __LOGO_SCAN_H__ */
